//
//  UICustomTextAlertView.h
//  UICustomTextAlertView
//
//  Created by apple on 2018/2/7.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
@class UICustomTextAlertView;

typedef void(^customTextAlertViewClickBlock)(NSInteger index);

//代理传递数据
@protocol UICustomTextAlertViewDelegate <NSObject>
@optional
- (void)customAlertView:(UICustomTextAlertView *)alertView  didSelectIndex:(NSInteger)index;
@end


@interface UICustomTextAlertView : UIView

//代理
@property (nonatomic, weak) id<UICustomTextAlertViewDelegate>delegate;

//block
@property (nonatomic, copy) customTextAlertViewClickBlock clickBlock;
- (void)setClickBlock:(customTextAlertViewClickBlock)clickBlock;
#pragma mark - 实例方法

- (instancetype)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate buttonTitles:(NSString *)buttonTitle, ... NS_REQUIRES_NIL_TERMINATION;

-(void)show;

-(void)showInView:(UIView *)view;

@end
